package com.yyjj.yyjj.sys.controller;


import com.yyjj.yyjj.common.result.Result;
import com.yyjj.yyjj.sys.service.IWareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/admin/sys/ware")
@RequiredArgsConstructor
@Api(value = "Ware管理", tags = "Ware管理")
public class WareController {
    private final IWareService wareService;

    //查询所有仓库列表
    @ApiOperation(value = "获取全部仓库")
    @GetMapping("/findAllList")
    public Result findAllList() {
        return Result.ok(wareService.list());
    }
}
